//
//  XCBaseModel.m
//  SourceOfNature
//
//  Created by 梁新昌 on 16/3/7.
//  Copyright © 2016年 梁新昌. All rights reserved.
//

#import "XCBaseModel.h"

@implementation XCBaseModel
/**
 *  kvc
 */
- (instancetype)initWithDataSource:(NSDictionary *)dataSource
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dataSource];
    }
    return self;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
@end
